﻿/**
 * Jean-François Desgagné 2009 Portfolio
 * Copyright (c) 2009 Jean-François Desgagné <jfesgagne@gmail.com>
 * 
 * This work is licensed under a Creative Commons Attribution 3.0 United States License.
 * Some Rights Reserved.
 */
package com.jfdesgagne.jfdesgagne09.shell.controller {
    import org.puremvc.as3.multicore.interfaces.ICommand;
    import org.puremvc.as3.multicore.interfaces.INotification;
    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import com.jfdesgagne.jfdesgagne09.modules.showcase.view.ShowcaseMediator;
	import com.jfdesgagne.jfdesgagne09.shell.view.SiteMediator;
    import com.jfdesgagne.jfdesgagne09.modules.showcase.ApplicationFacade;
	
	public class OpenShowcaseCommand extends SimpleCommand implements ICommand {
        override public function execute(note:INotification):void {
			var $facade:ApplicationFacade = ApplicationFacade.getInstance(ApplicationFacade.NAME);
				$facade.startup(SiteMediator.getInstance().site);
        }
    }
}